interface OnOffDescProps {
  flag: boolean;
  desc?: string;
}

const OnOffDesc = ({ flag = false, desc = "" }: OnOffDescProps) => {
  return (
    <>
      {flag ? <span className="ml-3">已开启</span> : <span className="ml-3">已关闭</span>}
      {desc ? <span className="mx-16 text-grey-400">{desc}</span> : null}
    </>
  );
};

export default OnOffDesc;
